<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.w3.org/1999/xhtml">
<body>
<div th:fragment="sidebar">
    <ul class="sidebar-menu list-unstyled">
        <li class="sidebar-list-item"><a href="/index" class="sidebar-link text-muted active"><i class="o-home-1 mr-3 text-gray"></i><span>Home</span></a></li>
        <li class="sidebar-list-item"><a href="/charts" class="sidebar-link text-muted"><i class="o-sales-up-1 mr-3 text-gray"></i><span>Charts</span></a></li>
        <li class="sidebar-list-item"><a href="/tables" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>Tables</span></a></li>
        <li class="sidebar-list-item"><a href="/forms" class="sidebar-link text-muted"><i class="o-survey-1 mr-3 text-gray"></i><span>Forms</span></a></li>
    <!--    学生-->

        <li class="sidebar-list-item" shiro:hasAnyRoles="student"><a href="#" data-toggle="collapse" data-target="#pages1" aria-expanded="false" aria-controls="pages1" class="sidebar-link text-muted"><i class="o-wireframe-1 mr-3 text-gray"></i><span>学生系统</span></a>
            <div id="pages1" class="collapse">
                <ul class="sidebar-menu list-unstyled border-left border-primary border-thick">
                    <li class="sidebar-list-item"><a href="/student/toWeek" class="sidebar-link text-muted pl-lg-5">周报管理</a></li>
                    <li class="sidebar-list-item"><a href="#" class="sidebar-link text-muted pl-lg-5">请假申请</a></li>
                </ul>
            </div>
        </li>

        <!--任课老师-->
        <li class="sidebar-list-item" shiro:hasAnyRoles="teacher"><a href="#" data-toggle="collapse" data-target="#pages2" aria-expanded="false" aria-controls="pages2" class="sidebar-link text-muted"><i class="o-wireframe-1 mr-3 text-gray"></i><span>讲师</span></a>
            <div id="pages2" class="collapse">
                <ul class="sidebar-menu list-unstyled border-left border-primary border-thick">
                    <li class="sidebar-list-item"><a href="/teacher/modifyInformation" class="sidebar-link text-muted pl-lg-5">个人信息修改</a></li>
                    <li class="sidebar-list-item"><a href="/teacher/weeklySee" class="sidebar-link text-muted pl-lg-5">周报查看</a></li>
                    <li class="sidebar-list-item"><a href="/leaves/toStuLeaves" class="sidebar-link text-muted pl-lg-5">请假审批</a></li>
                    <li class="sidebar-list-item"><a href="#" data-toggle="collapse" data-target="#pages22" aria-expanded="false" aria-controls="pages22" class="sidebar-link text-muted pl-lg-5"><span>成绩管理</span></a>
                        <div id="pages22" class="collapse">
                            <ul class="sidebar-menu list-unstyled border-left  border-thick">
                                <li class="sidebar-list-item"><a href="/teacher/toAchievementsRecord" class="sidebar-link text-muted" style="padding-left: 4rem">成绩录入</a></li>
                                <li class="sidebar-list-item"><a href="/teacher/performanceAnalysis" class="sidebar-link text-muted" style="padding-left: 4rem">成绩分析</a></li>
                            </ul>
                        </div>
                    </li>
                    <li class="sidebar-list-item"><a href="/teacher/toStuInfo" class="sidebar-link text-muted pl-lg-5">学生信息查看</a></li>
                    <li class="sidebar-list-item"><a href="/teacher/toLeave" class="sidebar-link text-muted pl-lg-5">个人请假</a></li>
                </ul>
            </div>
        </li>


        <!--班主任-->
        <li class="sidebar-list-item" shiro:hasAnyRoles="headmaster"><a href="#" data-toggle="collapse" data-target="#pages3" aria-expanded="false" aria-controls="pages3" class="sidebar-link text-muted"><i class="o-wireframe-1 mr-3 text-gray"></i><span>班主任</span></a>
            <div id="pages3" class="collapse">
                <ul class="sidebar-menu list-unstyled border-left border-primary border-thick">
                    <li class="sidebar-list-item"><a href="/classmaster/toWeeklyStudents" class="sidebar-link text-muted pl-lg-5">周报查看</a></li>
                    <li class="sidebar-list-item"><a href="/classmaster/toStudentsHoliday?leaveTab=2" class="sidebar-link text-muted pl-lg-5">请假审批<span class="badge" style="background-color: blue; color: white; margin-left: 3px;padding-top: 2px; ">3</span></a></li>
                    <li class="sidebar-list-item"><a href="/classmaster/toStudentsInformtion" class="sidebar-link text-muted pl-lg-5">学生管理</a></li>
                    <li class="sidebar-list-item"><a href="/classmaster/queryStudentSocre" class="sidebar-link text-muted pl-lg-5">成绩查看</a></li>
                    <li class="sidebar-list-item"><a href="/classmaster/toClassMeasterHoliday" class="sidebar-link text-muted pl-lg-5">个人请假</a></li>
                </ul>
            </div>
        </li>
        <!--校长-->
        <li class="sidebar-list-item" shiro:hasAnyRoles="principal"><a href="#" data-toggle="collapse" data-target="#pages4" aria-expanded="false" aria-controls="pages4" class="sidebar-link text-muted"><i class="o-wireframe-1 mr-3 text-gray"></i><span>校长</span></a>
            <div id="pages4" class="collapse">
                <ul class="sidebar-menu list-unstyled border-left border-primary border-thick">
                    <li class="sidebar-list-item"><a href="#" class="sidebar-link text-muted pl-lg-5">成绩查看</a></li>
                    <li class="sidebar-list-item"><a href="/principal/qingjia" class="sidebar-link text-muted pl-lg-5">请假审批</a></li>
                </ul>
            </div>
        </li>

        <!--    超级管理员-->
        <li class="sidebar-list-item" shiro:hasAnyRoles="admin"><a href="#" data-toggle="collapse" data-target="#pages" aria-expanded="false" aria-controls="pages" class="sidebar-link text-muted"><i class="o-wireframe-1 mr-3 text-gray"></i><span>超级管理员</span></a>
            <div id="pages" class="collapse">
                <ul class="sidebar-menu list-unstyled border-left border-primary border-thick">
                    <li class="sidebar-list-item"><a href="/admin/courseUI" class="sidebar-link text-muted pl-lg-5">课程管理</a></li>
                    <li class="sidebar-list-item"><a href="/admin/rolesUI" class="sidebar-link text-muted pl-lg-5">角色管理</a></li>
                    <li class="sidebar-list-item"><a href="/admin/userUI" class="sidebar-link text-muted pl-lg-5">用户管理</a></li>
                    <li class="sidebar-list-item"><a href="#" data-toggle="collapse" data-target="#pages33" aria-expanded="false" aria-controls="pages22" class="sidebar-link text-muted pl-lg-5"><span>员工管理</span></a>
                        <div id="pages33" class="collapse">
                            <ul class="sidebar-menu list-unstyled border-left  border-thick">
                                <li class="sidebar-list-item"><a href="#" class="sidebar-link text-muted" style="padding-left: 4rem">学生管理</a></li>
                                <li class="sidebar-list-item"><a href="#" class="sidebar-link text-muted" style="padding-left: 4rem">老师管理</a></li>
                                <li class="sidebar-list-item"><a href="#" class="sidebar-link text-muted" style="padding-left: 4rem">班主任管理</a></li>
                            </ul>
                        </div>
                    </li>
                    <li class="sidebar-list-item"><a href="/admin/classUI" class="sidebar-link text-muted pl-lg-5">班级管理</a></li>
                </ul>
            </div>
        </li>
    </ul>
</div>
</body>
</html>
